import os

# print(os.path.abspath("./Badges _ Socios_files"))

retdir = os.path.abspath("../static")
a = os.listdir(retdir)
a.pop(0)
for c in a:
    b = os.listdir(retdir + '\\' + c)
    print(c)
    for i in b:
        print(i)
        os.rename(retdir + '\\' + c + '\\' + i, retdir + '\\' + c + '\\' + i.replace(".下载", ""))
